package com.qcby.dao;

import com.qcby.model.User;
import com.qcby.query.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper extends BaseDao<UserQuery, User> {
    public User login(User user);

    public Integer isSameName(User user);

    public List<User> managerLogin(User user);

    List<User> query(@Param("username") String username, @Param("displayName") String displayName,
                     @Param("phone") String phone, @Param("startNum") Integer startNum,
                     @Param("pageSize") Integer pageSize);

    Integer queryCount(@Param("username") String username, @Param("displayName") String displayName,
                       @Param("phone") String phone);
}
